package com.example.program.ui.activity

import android.content.Intent
import com.example.program.R
import com.example.program.base.BaseActivity
import com.example.program.databinding.ActivitySplashBinding
import com.example.program.utils.startScaleAnim

class SplashActivity : BaseActivity<ActivitySplashBinding>() {

    override fun initUI() {
        super.initUI()
    }

    override fun onResume() {
        super.onResume()
        mBinding.imageView.startScaleAnim(1.2f,1.0f)
        mBinding.textView.startScaleAnim(0.8f,1.0f, onEnd = {
            startActivity(Intent(this,MainActivity::class.java))
            overridePendingTransition(R.anim.fade_in,R.anim.fade_out)
        })
    }

}